#include "Utilities.h"

using namespace Graphics;


void Graphics::drawCartesianSystem()
{
	glColor3f(0.5f,0.5f,0.5f);

	glBegin(GL_QUADS);
		glVertex3f(-1.0f,-0.2f,1.0f);
		glVertex3f(1.0f,-0.2f,1.0f);
		glVertex3f(1.0f,-0.2f,-1.0f);
		glVertex3f(-1.0f,-0.2f,-1.0f);
	glEnd();

	glDisable(GL_LIGHTING);
	glBegin(GL_LINES);
		//X
		glColor3f(1.0f,0.0f,0.0f);
		glVertex3f(-100.0f,0.0f,0.0f);
		glVertex3f(100.0f,0.0f,0.0f);
		//Y
		glColor3f(0.0f,1.0f,0.0f);
		glVertex3f(0.0f,100.0f,0.0f);
		glVertex3f(0.0f,-100.0f,0.0f);
		//Z
		glColor3f(0.0f,0.0f,1.0f);
		glVertex3f(0.0f,0.0f,100.0f);
		glVertex3f(0.0f,0.0f,-100.0f);
	glEnd();

	glEnable(GL_LIGHTING);
}
